.class Llt/noframe/gpsfarmguide/views/FragmentMap$9;
.super Ljava/lang/Object;
.source "FragmentMap.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Llt/noframe/gpsfarmguide/views/FragmentMap;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/views/FragmentMap;)V
    .locals 0

    .line 860
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$9;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 864
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$9;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object p1

    const-string v0, "android.permission.ACCESS_FINE_LOCATION"

    invoke-static {p1, v0}, Landroidx/core/content/ContextCompat;->checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I

    move-result p1

    if-eqz p1, :cond_0

    .line 865
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$9;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    const/4 v0, 0x1

    invoke-virtual {p1, v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->requestGPSPermission(Z)V

    return-void

    .line 869
    :cond_0
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object p1

    const-string v0, "location"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/location/LocationManager;

    .line 870
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getLocationProvider()Llt/noframe/gpsfarmguide/gps/AppLocationProvider;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider;->startFree()V

    .line 875
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$9;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-static {p1}, Llt/noframe/gpsfarmguide/views/FragmentMap;->access$000(Llt/noframe/gpsfarmguide/views/FragmentMap;)Llt/noframe/gpsfarmguide/Data;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->getCurrentState()Llt/noframe/gpsfarmguide/states/map_states/MapState;

    move-result-object p1

    invoke-interface {p1}, Llt/noframe/gpsfarmguide/states/map_states/MapState;->buttonCenter()V

    return-void
.end method
